-- Protection

local vCount
function ccR_Paladin_2()
	-- Target Count
	vCount = ccrTargetCount(10)
	-- Level Detection
	if ccrPlayerLevel() >= 10 and ccrPlayerLevel() <= 89 then Paladin_Protection_10_89() end
	if ccrPlayerLevel() == 90 then Paladin_Protection_90() end
end

function Paladin_Protection_10_89()

	-- Talents.lua
		-- 30
		ccR_Paladin_HammerOfJustice()	
		-- 45
		ccR_Paladin_SelflessHealer()
		-- 75
		ccR_Paladin_HolyAvenger()

	-- Abilities.lua
	ccR_Paladin_Avengers_Shield()

	ccR_Paladin_LayOnHands()
	ccR_Paladin_DivineShield()
	ccR_Paladin_Cleanse()
	ccR_Paladin_DivineProtection()
	ccR_Paladin_Rebuke()
	ccR_Paladin_HandOfProtection()
	ccR_Paladin_HandOfFreedom()
	ccR_Paladin_Blessing_of_Kings()
	ccR_Paladin_Avenging_Wrath()
	ccR_Paladin_Guardian_of_Ancient_Kings()

	-- Rotation
	if ccrPlayerHasSpell(HAMMER_OF_THE_RIGHTEOUS) then
		-- Single Target Rotation
		if (ccRS.Auto_AoE and (vCount >= 1 and vCount <= ccRS.Paladin_2_SingleTargetCount))
		or (ccrTargetIsBoss() and ccRS.Auto_AoE_Ignore_On_Boss)
		or (not ccRS.Auto_AoE and not ccRS.Manual_AoE)
		then
			ccR_Paladin_Shield_of_the_Righteous_and_Word_of_Glory()
			ccR_Paladin_Hammer_Of_Wrath()
			ccR_Paladin_Crusader_Strike()
			ccR_Paladin_Judgment()
			ccR_Paladin_Holy_Wrath()
			return
		end

		-- AoE Rotation
		if (ccRS.Auto_AoE and vCount >= ccRS.Paladin_2_AoECount)
		or (not ccRS.Auto_AoE and ccRS.Manual_AoE)
		then
			ccR_Paladin_Hammer_of_the_Righteous()
			ccR_Paladin_Consecration()
			ccR_Paladin_Holy_Wrath()

			ccR_Paladin_Shield_of_the_Righteous_and_Word_of_Glory()
			ccR_Paladin_Hammer_Of_Wrath()
			ccR_Paladin_Judgment()
		end		
	else
		-- Single Target Rotation
		ccR_Paladin_Crusader_Strike()
		ccR_Paladin_Templars_Verdict()
	end
end


function Paladin_Protection_90()
end